// 车辆相关接口
import http from '../http/interface'
const Car = {
	// 添加车辆
	addCar: (data, ifLoad = false) => {
		return http.request({
			url: '/rc/car-info/add',
			method: 'POST',
			data,
			// handle:true
		}, ifLoad)
	},
	// 获取车辆
	getCar: (data, ifLoad = false) => {
		return http.request({
			url: '/rc/car-info/list',
			method: 'GET',
			data
			// handle:true
		}, ifLoad)
	},
	// 获取车辆
	getCarAdmin: (data, ifLoad = false) => {
		return http.request({
			url: '/rc/car-info/adminList',
			method: 'GET',
			data
			// handle:true
		}, ifLoad)
	},
	// 删除车辆
	delCar: id => {
		return http.request({
			url: '/rc/car-info/deleteById?id='+id,
			method: 'DELETE',
			// handle:true
		})
	},
}
export default Car
